#version 330

in VertexData{
    vec4 normal;
    vec2 texCoord;
}vertexIn;

uniform sampler2D colorSampler;
uniform int validPosition;

out vec4 outputColor;

void main(void){
    outputColor = texture2D(colorSampler, vertexIn.texCoord);
    if(validPosition == 1){
        outputColor.y = 1;
    }
    if(validPosition == 0){
        outputColor.x = 1;
    }
}
